package com.victualler.core.config.permission.repository;


import com.victualler.core.base.repository.IBaseQueryRepository;
import com.victualler.core.config.permission.entity.PermissionInfoDao;

import java.util.List;


/**
 * @author Guoshichang
 * @function 封装用于复杂sql查询的API. 为每个实体的repository层提供便利操作
 */
public interface PermissionInfoQueryRepository extends IBaseQueryRepository<PermissionInfoDao,Long> {
    /**
     * @author Guoshichang   
     * @since 19:06 on 2018/7/6.
     * @param roleIds
     * @Function 根据角色列表获取权限列表
     */
    public List<PermissionInfoDao> getPermissionInfoByRoleId(List<Long> roleIds);

    /**
     * @author Guoshichang
     * @since 21:12 on 2018/9/9.
     * @param roleId 双
     * @return List
     * @Function
     */
    public List<PermissionInfoDao> notInByRoleId(Long roleId);
}
